package com.lwm.service;


import com.github.pagehelper.PageInfo;
import com.lwm.domain.PurchaseApproval;
import com.lwm.domain.ResponseResult;
import com.lwm.dto.PageParams;

/**
 * 采购申请表(PurchaseApproval)表服务接口
 *
 * @author lzl
 * @since 2023-10-17 16:22:24
 */
public interface PurchaseApprovalService {


    /**
     * 按id获取
     *
     * @param id id
     * @return {@link ResponseResult}<{@link PurchaseApproval}>
     */
    ResponseResult<PurchaseApproval> getById(Long id);

    /**
     * 分页条件查询
     *
     * @param purchaseApproval 采购批准
     * @param pageParams       页面参数
     * @return {@link ResponseResult}<{@link PageInfo}<{@link PurchaseApproval}>>
     */
    ResponseResult<PageInfo<PurchaseApproval>> page(PurchaseApproval purchaseApproval, PageParams pageParams);

    /**
     * 修改
     *
     * @param purchaseApproval 采购批准
     * @return {@link ResponseResult}
     */
    ResponseResult update(PurchaseApproval purchaseApproval);
}
